class ZephoLogFormatter 
  def call(severity, time, program_name, message) 
    datetime = time.strftime("%b %d %H:%M:%S") 
    process = "#{program_name} PID - #{$PID}" 
    hostname = Socket.gethostname.split('.')[0] 
    message = (String === message ? message : message.inspect).gsub(/\n/, '').strip 
    "#{datetime} #{hostname} #{process}: #{message}\n" 
  end 

end